package com.link.gateway.core.utils;


/**
 * @author HuangLJ
 * @date 2019-07-30 11:58
 * Yml常量类
 */
public class YmlConstants {

    /**
     * redis的访问地址
     */
    private static String applicationRedisHost;
    /**
     * redis访问端口
     */
    private static String applicationRedisPort;
    /**
     * redis的密码
     */
    private static String applicationRedisPassword;

    private static boolean applicationRedisClusterState;

    /**
     * redis集群
     */
    private static int redisClusterExpireSeconds;
    private static String redisClusterNodes;
    private static String redisClusterPassword;
    private static int redisClusterCommandTimeout;

    private static int REDIS_POOL_MAX_IDLE;
    private static int REDIS_POOL_MIN_IDLE;
    private static int REDIS_POOL_MAX_WAIT;
    private static int REDIS_POOL_MAX_TOTAL;

    /**
     * 是否记录执行时间
     */
    private static boolean isRecord;

    /**
     * AES秘钥，用于AES加密解密
     */
    private static String aesSecretkey;

    /** 接口权限频率环境标识 */
    private static String visitLogEnv;
    /** 全局接口访问记录开关 */
    private static String visitLogSwitch;
    //生成地需要的配置
    private static long dataCenterId;
    private static long machineId;

    /** 发件邮箱 */
    private static String emailFrom;

    public static String getEmailFrom() {
        return emailFrom;
    }

    public static void setEmailFrom(String emailFrom) {
        YmlConstants.emailFrom = emailFrom;
    }

    public static String getVisitLogSwitch() {
        return visitLogSwitch;
    }

    public static void setVisitLogSwitch(String visitLogSwitch) {
        YmlConstants.visitLogSwitch = visitLogSwitch;
    }

    public static String getAesSecretkey() {
        return aesSecretkey;
    }

    public static void setAesSecretkey(String aesSecretkey) {
        YmlConstants.aesSecretkey = aesSecretkey;
    }

    public static String getApplicationRedisHost() {
        return applicationRedisHost;
    }

    public static void setApplicationRedisHost(String applicationRedisHost) {
        YmlConstants.applicationRedisHost = applicationRedisHost;
    }

    public static String getApplicationRedisPort() {
        return applicationRedisPort;
    }

    public static void setApplicationRedisPort(String applicationRedisPort) {
        YmlConstants.applicationRedisPort = applicationRedisPort;
    }

    public static String getApplicationRedisPassword() {
        return applicationRedisPassword;
    }

    public static void setApplicationRedisPassword(String applicationRedisPassword) {
        YmlConstants.applicationRedisPassword = applicationRedisPassword;
    }

    public static int getRedisClusterExpireSeconds() {
        return redisClusterExpireSeconds;
    }

    public static void setRedisClusterExpireSeconds(int redisClusterExpireSeconds) {
        YmlConstants.redisClusterExpireSeconds = redisClusterExpireSeconds;
    }

    public static String getRedisClusterNodes() {
        return redisClusterNodes;
    }

    public static void setRedisClusterNodes(String redisClusterNodes) {
        YmlConstants.redisClusterNodes = redisClusterNodes;
    }

    public static String getRedisClusterPassword() {
        return redisClusterPassword;
    }

    public static void setRedisClusterPassword(String redisClusterPassword) {
        YmlConstants.redisClusterPassword = redisClusterPassword;
    }

    public static int getRedisClusterCommandTimeout() {
        return redisClusterCommandTimeout;
    }

    public static void setRedisClusterCommandTimeout(int redisClusterCommandTimeout) {
        YmlConstants.redisClusterCommandTimeout = redisClusterCommandTimeout;
    }

    public static boolean isApplicationRedisClusterState() {
        return applicationRedisClusterState;
    }

    public static void setApplicationRedisClusterState(boolean applicationRedisClusterState) {
        YmlConstants.applicationRedisClusterState = applicationRedisClusterState;
    }

    public static int getRedisPoolMaxIdle() {
        return REDIS_POOL_MAX_IDLE;
    }

    public static void setRedisPoolMaxIdle(int redisPoolMaxIdle) {
        REDIS_POOL_MAX_IDLE = redisPoolMaxIdle;
    }

    public static int getRedisPoolMinIdle() {
        return REDIS_POOL_MIN_IDLE;
    }

    public static void setRedisPoolMinIdle(int redisPoolMinIdle) {
        REDIS_POOL_MIN_IDLE = redisPoolMinIdle;
    }

    public static int getRedisPoolMaxWait() {
        return REDIS_POOL_MAX_WAIT;
    }

    public static void setRedisPoolMaxWait(int redisPoolMaxWait) {
        REDIS_POOL_MAX_WAIT = redisPoolMaxWait;
    }

    public static int getRedisPoolMaxTotal() {
        return REDIS_POOL_MAX_TOTAL;
    }

    public static void setRedisPoolMaxTotal(int redisPoolMaxTotal) {
        REDIS_POOL_MAX_TOTAL = redisPoolMaxTotal;
    }

    public static String getVisitLogEnv() {
        return visitLogEnv;
    }

    public static void setVisitLogEnv(String visitLogEnv) {
        YmlConstants.visitLogEnv = visitLogEnv;
    }

    public static boolean isIsRecord() {
        return isRecord;
    }

    public static void setIsRecord(boolean isRecord) {
        YmlConstants.isRecord = isRecord;
    }

    public static long getDataCenterId() {
        return dataCenterId;
    }

    public static void setDataCenterId(long dataCenterId) {
        YmlConstants.dataCenterId = dataCenterId;
    }

    public static long getMachineId() {
        return machineId;
    }

    public static void setMachineId(long machineId) {
        YmlConstants.machineId = machineId;
    }
}
